package com.yejun.halfcirclerim;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import butterknife.ButterKnife;
import butterknife.InjectView;

public class MainActivity extends AppCompatActivity {


    @InjectView(R.id.iv_search)
    ImageView mIvSearch;
    @InjectView(R.id.text1)
    TextView mText1;
    @InjectView(R.id.text2)
    TextView mText2;
    @InjectView(R.id.search_text)
    EditText mSearchText;
    @InjectView(R.id.ll_searchrim)
    RelativeLayout mLlSearchrim;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.inject(this);
        initListener();

    }

    private void initListener() {
        mLlSearchrim.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                mIvSearch.setVisibility(View.GONE);
                mText1.setVisibility(View.GONE);
                mText2.setVisibility(View.GONE);
                mSearchText.setVisibility(View.VISIBLE);
            }
        });
    }


}
